package com.tsingtree.modular.model.result;

import lombok.Data;
import java.util.Date;
import java.io.Serializable;

/**
 * <p>
 * APP评论结果
 * </p>
 *
 * @author jagger
 * @since 2025-10-28
 */
@Data
public class NanAppReviewResult implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;

    private Integer userId;

    private Integer rating;

    private String content;

    private String os;

    private String deviceModel;

    private Date createTime;

    private Date updateTime;

    private Integer version;

    private Integer isDel;

    /**
     * 关联字段：用户邮箱
     */
    private String userEmail;

    /**
     * 计算字段：评分显示
     */
    private String ratingStr;

    public String getRatingStr() {
        if (rating == null) {
            return "";
        }
        return rating + "星";
    }
}
